<template>
    <div class="box">
        <div class="empt" v-if="data.isempt == '辅助空白'" :style="{ height: data.height + 'px' }"></div>
        <div class="linebox" v-else>
            <div class="line"
                :style="{ 'border-style': data.linetype == '实线' ? 'solid' : 'dashed', 'border-color': data.color }">
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: "Division",
    props: {
        data: {
            type: Object,
            default: () => ({}),
        },
    },
    watch: {


    },

    data() {
        return {
            list: {
                isempt: '辅助空白',
                height: 0,

            },
        }
    },
    mounted() {
        // this.list = Object.assign(this.list, this.data);
    },
    methods: {

    }
};
</script>
<style scoped lang="scss">
.box {
    padding: 10px;
    background-color: #fff;
    border: 1px dashed #1dd4ab;

    .empt {}

    .linebox {
        height: 40px;
        display: flex;
        align-items: center;
        width: 100%;

        .line {
            width: 100%;
            border: 1px dashed #000;
            border-color: #1dd4ab;
        }
    }

}
</style>